module.exports = function(grunt) {

    grunt.initConfig({

        pkg: grunt.file.readJSON('package.json'),


        transport : {
            sffruit : {
                files : {
                    '.build' : [
                        // 编辑地址
                        './static_v3/js/test/addressEditTest.js',
                        './static_v3/js/address_edit.js',

                        './static_v3/js/test/applyAfterTest.js',
                        './static_v3/js/apply.js',

                        './static_v3/js/test/applylayStateTest.js',
                        './static_v3/js/viewimage.js',
                        './static_v3/js/applylay.js',

                         './static_v3/js/test/businessTest.js',
                        './static_v3/js/business.js',

                        './static_v3/js/test/cartListTest.js',
                        './static_v3/js/cart_list.js',

                        './static_v3/js/test/categoryTest.js',
                        './static_v3/js/category_sea.js',

                        './static_v3/js/test/commentInfoTest.js',
                        './static_v3/js/comment_info.js',

                        './static_v3/js/test/estimateListTest.js',
                        './static_v3/js/estimateList.js',

                        './static_v3/js/test/goodsDetailsTest.js',
                        './static_v3/js/goods_detail.js',
                        './static_v3/js/test/goodsDetailsMemberTest.js',
                        './static_v3/js/index_memberLayer.js',

                        './static_v3/js/test/indexTest.js',
                        './static_v3/js/index_sea.js',

                        './static_v3/js/test/indexFindTest.js',

                        './static_v3/js/test/indexTeShiTest.js',
                        './static_v3/js/index_teshi.js',

                        './static_v3/js/test/indexTeShiTestH.js',
                        './static_v3/js/index_teshiH.js',

                        './static_v3/js/test/loginTest.js',
                        './static_v3/js/login_checkInput_new.js',

                        './static_v3/js/test/loginRegTest.js',

                        './static_v3/js/test/orderListTest.js',
                        './static_v3/js/order_list.js',

                        './static_v3/js/test/searchListTest.js',
                        './static_v3/js/searchList_sea.js',

                        './static_v3/js/agreement.js',
                        './static_v3/js/viewimage.js',

                        './static_v3/js/webcall_message.js',
                        './static_v3/js/addcar_quick.js',
                        './static_v3/js/historyCookie.js',
                        './static_v3/js/clip.js',

                        './static_v3/js/sum.js',
                        './static_v3/js/common.js',
                        './static_v3/js/public.js'
                    ]
                }
            }
        },



        concat : {
            sffruit : {
                files : {
                    './static_v3/js/minJS/addressEdit.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        'static_v3/js/plug/layer/layer.js',
                        'static_v3/js/baiduCount.js',

                        'static_v3/js/plug/mui/mui.min.js',
                        'static_v3/js/plug/mui/mui.picker.min.js',
                        'static_v3/js/plug/city.data-3.js',

                        '.build/static_v3/js/test/addressEditTest.js',
                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/address_edit.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/applyAfter.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        'static_v3/js/plug/layer/layer.js',

                        'static_v3/js/plug/clip/iscroll-zoom.js',
                        'static_v3/js/plug/clip/lrz.all.bundle.js',
                        'static_v3/js/plug/clip/photoClip.js',

                        'static_v3/js/baiduCount.js',

                        '.build/static_v3/js/test/applyAfterTest.js',
                        '.build/static_v3/js/clip.js',
                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/apply.js',

                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/applylayState.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        'static_v3/js/plug/layer/layer.js',
                        'static_v3/js/shop.js',

                        'static_v3/js/baiduCount.js',

                        'static_v3/js/plug/mui/mui.min.js',
                        'static_v3/js/plug/mui/mui.zoom.js',
                        'static_v3/js/plug/mui/mui.viewimage.js',

                        '.build/static_v3/js/test/applylayStateTest.js',
                        '.build/static_v3/js/viewimage.js',
                        '.build/static_v3/js/applylay.js',
                        '.build/static_v3/js/common.js',

                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/business.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        //'static_v3/js/plug/swiper.jquery.min.js',
                        'static_v3/js/plug/lazyload_echo.js',
                        'static_v3/js/plug/layer/layer.js',
                        'static_v3/js/shop.js',
                        'static_v3/js/baiduCount.js',

                        '.build/static_v3/js/test/businessTest.js',
                        '.build/static_v3/js/addcar_quick.js',
                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/business.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/cartList.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',

                        'static_v3/js/plug/lazyload_echo.js',
                        'static_v3/js/plug/layer/layer.js',

                        'static_v3/js/shop.js',
                        'static_v3/js/baiduCount.js',

                        '.build/static_v3/js/test/cartListTest.js',
                        '.build/static_v3/js/sum.js',
                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/cart_list.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/category.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        'static_v3/js/plug/swiper.jquery.min.js',
                        'static_v3/js/plug/lazyload_echo.js',
                        'static_v3/js/plug/layer/layer.js',
                        'static_v3/js/shop.js',
                        'static_v3/js/baiduCount.js',

                        '.build/static_v3/js/test/categoryTest.js',
                        '.build/static_v3/js/addcar_quick.js',
                        '.build/static_v3/js/historyCookie.js',
                        'static_v3/js/plug/base64.js',

                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/category_sea.js',
                        '.build/static_v3/js/webcall_message.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/commentInfo.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        'static_v3/js/plug/layer/layer.js',

                        'static_v3/js/plug/clip/iscroll-zoom.js',
                        'static_v3/js/plug/clip/lrz.all.bundle.js',
                        'static_v3/js/plug/clip/photoClip.js',

                        'static_v3/js/baiduCount.js',


                        '.build/static_v3/js/test/commentInfoTest.js',
                        '.build/static_v3/js/clip.js',
                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/comment_info.js',
                        'static_v3/js/shop.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/estimateList.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        'static_v3/js/shop.js',

                        'static_v3/js/plug/mui/mui.min.js',
                        'static_v3/js/plug/mui/mui.zoom.js',
                        'static_v3/js/plug/mui/mui.viewimage.js',

                        'static_v3/js/baiduCount.js',

                        '.build/static_v3/js/test/estimateListTest.js',
                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/estimateList.js',
                        '.build/static_v3/js/viewimage.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/goodsDetails.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        'static_v3/js/plug/swiper.jquery.min.js',
                        'static_v3/js/plug/lazyload_echo.js',
                        'static_v3/js/plug/layer/layer.js',
                        'static_v3/js/shop.js',

                        'static_v3/js/baiduCount.js',

                        'static_v3/js/plug/mui/mui.min.js',
                        'static_v3/js/plug/mui/mui.zoom.js',
                        'static_v3/js/plug/mui/mui.viewimage.js',

                        '.build/static_v3/js/test/goodsDetailsTest.js',
                        '.build/static_v3/js/sum.js',
                        '.build/static_v3/js/viewimage.js',
                        '.build/static_v3/js/goods_detail.js',
                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/webcall_message.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/goodsDetailsMember.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        'static_v3/js/plug/swiper.jquery.min.js',
                        'static_v3/js/plug/lazyload_echo.js',
                        'static_v3/js/plug/layer/layer.js',
                        'static_v3/js/shop.js',

                        'static_v3/js/baiduCount.js',

                        'static_v3/js/plug/mui/mui.min.js',
                        'static_v3/js/plug/mui/mui.zoom.js',
                        'static_v3/js/plug/mui/mui.viewimage.js',

                        '.build/static_v3/js/test/goodsDetailsMemberTest.js',
                        '.build/static_v3/js/sum.js',
                        '.build/static_v3/js/viewimage.js',
                        '.build/static_v3/js/goods_detail.js',
                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/webcall_message.js',
                        '.build/static_v3/js/index_memberLayer.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/index.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        'static_v3/js/plug/swiper.jquery.min.js',
                        'static_v3/js/plug/lazyload_echo.js',
                        'static_v3/js/plug/layer/layer.js',
                        'static_v3/js/shop.js',
                        'static_v3/js/baiduCount.js',
                        'static_v3/js/wxshare.js',

                        '.build/static_v3/js/test/indexTest.js',
                        '.build/static_v3/js/addcar_quick.js',
                        '.build/static_v3/js/historyCookie.js',
                        'static_v3/js/plug/base64.js',

                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/index_sea.js',
                        '.build/static_v3/js/webcall_message.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/indexFind.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        //'static_v3/js/plug/swiper.jquery.min.js',
                        //'static_v3/js/plug/lazyload_echo.js',
                        'static_v3/js/plug/layer/layer.js',
                        //'static_v3/js/shop.js',
                        'static_v3/js/baiduCount.js',


                        '.build/static_v3/js/test/indexFindTest.js',
                        //'.build/static_v3/js/addcar_quick.js',
                        '.build/static_v3/js/historyCookie.js',
                        'static_v3/js/plug/base64.js',

                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/webcall_message.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/indexTeShi.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        'static_v3/js/plug/swiper.jquery.min.js',
                        'static_v3/js/plug/lazyload_echo.js',
                        'static_v3/js/plug/layer/layer.js',
                        //'static_v3/js/shop.js',
                        'static_v3/js/baiduCount.js',

                        '.build/static_v3/js/test/indexTeShiTest.js',
                        '.build/static_v3/js/addcar_quick.js',
                        '.build/static_v3/js/historyCookie.js',
                        'static_v3/js/plug/base64.js',

                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/index_teshi.js',
                        '.build/static_v3/js/webcall_message.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/indexTeShiH.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        'static_v3/js/plug/swiper.jquery.min.js',
                        'static_v3/js/plug/lazyload_echo.js',
                        'static_v3/js/plug/layer/layer.js',
                        //'static_v3/js/shop.js',
                        'static_v3/js/baiduCount.js',

                        '.build/static_v3/js/test/indexTeShiTestH.js',
                        '.build/static_v3/js/addcar_quick.js',
                        '.build/static_v3/js/historyCookie.js',
                        'static_v3/js/plug/base64.js',

                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/index_teshiH.js',
                        '.build/static_v3/js/webcall_message.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/login.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        'static_v3/js/plug/layer/layer.js',
                        'static_v3/js/baiduCount.js',
                        'static_v3/js/aes.js',
                        'static_v3/js/shop.js',

                        '.build/static_v3/js/test/loginTest.js',
                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/login_checkInput_new.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/loginReg.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        'static_v3/js/plug/layer/layer.js',
                        'static_v3/js/baiduCount.js',
                        'static_v3/js/aes.js',
                        'static_v3/js/shop.js',

                        '.build/static_v3/js/test/loginRegTest.js',
                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/login_checkInput_new.js',
                        '.build/static_v3/js/agreement.js',
                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/orderList.js' : [
                        //'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',
                        //'static_v3/js/plug/swiper.jquery.min.js',
                        'static_v3/js/plug/lazyload_echo.js',
                        'static_v3/js/plug/layer/layer.js',
                        //'static_v3/js/shop.js',
                        'static_v3/js/baiduCount.js',

                        '.build/static_v3/js/test/orderListTest.js',

                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/order_list.js',

                        '.build/static_v3/js/public.js'
                    ],
                    './static_v3/js/minJS/searchList.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',

                        'static_v3/js/plug/lazyload_echo.js',
                        'static_v3/js/plug/layer/layer.js',

                        'static_v3/js/shop.js',
                        'static_v3/js/baiduCount.js',

                        '.build/static_v3/js/test/searchListTest.js',
                        '.build/static_v3/js/historyCookie.js',
                        'static_v3/js/plug/base64.js',

                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/addcar_quick.js',
                        '.build/static_v3/js/webcall_message.js',
                        '.build/static_v3/js/searchList_sea.js',
                        '.build/static_v3/js/public.js'
                    ]
                }
            }
        },

        uglify : {
            sffruit : {
                files : {
                    './static_v3/js/minJS/addressEdit.min.js' : [
                        'static_v3/js/minJS/addressEdit.js'
                    ],
                    './static_v3/js/minJS/applyAfter.min.js' : [
                        'static_v3/js/minJS/applyAfter.js'
                    ],
                    './static_v3/js/minJS/applylayState.min.js' : [
                        'static_v3/js/minJS/applylayState.js'
                    ],
                    './static_v3/js/minJS/business.min.js' : [
                        'static_v3/js/minJS/business.js'
                    ],
                    './static_v3/js/minJS/cartList.min.js' : [
                        'static_v3/js/minJS/cartList.js'
                    ],
                    './static_v3/js/minJS/category.min.js' : [
                        'static_v3/js/minJS/category.js'
                    ],
                    './static_v3/js/minJS/commentInfo.min.js' : [
                        'static_v3/js/minJS/commentInfo.js'
                    ],
                    './static_v3/js/minJS/estimateList.min.js' : [
                        'static_v3/js/minJS/estimateList.js'
                    ],
                    './static_v3/js/minJS/goodsDetails.min.js' : [
                        'static_v3/js/minJS/goodsDetails.js'
                    ],
                    './static_v3/js/minJS/goodsDetailsMember.min.js' : [
                        'static_v3/js/minJS/goodsDetailsMember.js'
                    ],
                    './static_v3/js/minJS/index.min.js' : [
                        'static_v3/js/minJS/index.js'
                    ],
                    './static_v3/js/minJS/indexFind.min.js' : [
                        'static_v3/js/minJS/indexFind.js'
                    ],
                    './static_v3/js/minJS/indexTeShi.min.js' : [
                        'static_v3/js/minJS/indexTeShi.js'
                    ],
                    './static_v3/js/minJS/indexTeShiH.min.js' : [
                        'static_v3/js/minJS/indexTeShiH.js'
                    ],
                    './static_v3/js/minJS/login.min.js' : [
                        'static_v3/js/minJS/login.js'
                    ],
                    './static_v3/js/minJS/loginReg.min.js' : [
                        'static_v3/js/minJS/loginReg.js'
                    ],
                    './static_v3/js/minJS/orderList.min.js' : [
                        'static_v3/js/minJS/orderList.js'
                    ],
                    './static_v3/js/minJS/searchList.min.js' : [
                        'static_v3/js/minJS/searchList.js'
                    ]


                }
            }
        },


    });

    grunt.loadNpmTasks('grunt-cmd-transport');

    grunt.loadNpmTasks('grunt-contrib-concat');

    grunt.loadNpmTasks('grunt-contrib-uglify');

    grunt.registerTask('default', ['transport','concat','uglify']);
    //grunt.registerTask('default', ['transport','concat']);


};